<template>
  <div class="HomePageindex">
    <div class="HomePageindex-left">
      <div class="borderStyle" v-nodata="nodata">
        <!-- 站所概览 StationOverview -->
        <StationOverview />
      </div>
      <div class="borderStyle" v-nodata="nodata2">
        <!-- 辅助监控 AuxiliaryMonitoring-->
        <AuxiliaryMonitoring />
      </div>
    </div>
    <div class="HomePageindex-center">
      <div class="centermap">
        <CenterMap />
      </div>
      <div class="borderStyle">
        <!-- 锁具信息 LockInformation -->
        <!-- <LockInformation /> -->
        <LockInformationsecond />
      </div>
    </div>
    <div class="HomePageindex-right">
      <div class="borderStyle">
        <!-- 物联感知设备 InternetThings -->
        <InternetThings />
      </div>
      <div class="borderStyle">
        <!-- 联合巡检 Inspection -->
        <Inspection />
      </div>
      <div class="borderStyle">
        <!-- 智能联动  Linkage-->
        <Linkage />
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Watch, Vue } from "vue-property-decorator";
import StationOverview from "./StationOverview.vue";
import AuxiliaryMonitoring from "./AuxiliaryMonitoring.vue";
import LockInformation from "./LockInformation.vue";
import LockInformationsecond from "./LockInformationsecond.vue";
import InternetThings from "./InternetThings.vue";
import Inspection from "./Inspection.vue";
import Linkage from "./Linkage.vue";
import CenterMap from "./CenterMap.vue";
import { publicAPIModule } from "@/store/modules/public";
@Component({
  components: {
    StationOverview,
    AuxiliaryMonitoring,
    LockInformation,
    InternetThings,
    Inspection,
    Linkage,
    CenterMap,
    LockInformationsecond,
  },
})
export default class HomePageindex extends Vue {
  nodata = false;
  nodata2 = false;
  mounted() {
    // this.showMessage()
  }
}
</script>

<style lang="scss" scoped>
.HomePageindex {
  width: 100%;
  height: 100%;
  padding: 0.24rem;
  display: flex;
  $height1: 33%;
  $height: 65%;
  $height3: 32%;
  justify-content: space-between;
  &-left {
    width: 4.37rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    > div {
      width: 100%;
      &:nth-child(1) {
        height: $height1;
      }
      &:nth-child(2) {
        height: $height;
      }
    }
  }
  &-center {
    width: 9.52rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    > div {
      width: 100%;
      &:nth-child(1) {
        height: $height;
      }
      &:nth-child(2) {
        height: $height1;
      }
    }
  }
  &-right {
    width: 4.37rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    > div {
      width: 100%;
      &:nth-child(1) {
        height: $height3;
      }
      &:nth-child(2) {
        height: $height3;
      }
      &:nth-child(3) {
        height: $height3;
      }
    }
  }
}
</style>

